package com.eportal.ORM;

/**
 * WtBillInfoId entity. @author MyEclipse Persistence Tools
 */

public class WtBillInfoId implements java.io.Serializable {

	// Fields

	private String billOrgcode;
	private String billRcvdate;
	private String billStan;

	// Constructors

	/** default constructor */
	public WtBillInfoId() {
	}

	/** full constructor */
	public WtBillInfoId(String billOrgcode, String billRcvdate, String billStan) {
		this.billOrgcode = billOrgcode;
		this.billRcvdate = billRcvdate;
		this.billStan = billStan;
	}

	// Property accessors

	public String getBillOrgcode() {
		return this.billOrgcode;
	}

	public void setBillOrgcode(String billOrgcode) {
		this.billOrgcode = billOrgcode;
	}

	public String getBillRcvdate() {
		return this.billRcvdate;
	}

	public void setBillRcvdate(String billRcvdate) {
		this.billRcvdate = billRcvdate;
	}

	public String getBillStan() {
		return this.billStan;
	}

	public void setBillStan(String billStan) {
		this.billStan = billStan;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtBillInfoId))
			return false;
		WtBillInfoId castOther = (WtBillInfoId) other;

		return ((this.getBillOrgcode() == castOther.getBillOrgcode()) || (this
				.getBillOrgcode() != null
				&& castOther.getBillOrgcode() != null && this.getBillOrgcode()
				.equals(castOther.getBillOrgcode())))
				&& ((this.getBillRcvdate() == castOther.getBillRcvdate()) || (this
						.getBillRcvdate() != null
						&& castOther.getBillRcvdate() != null && this
						.getBillRcvdate().equals(castOther.getBillRcvdate())))
				&& ((this.getBillStan() == castOther.getBillStan()) || (this
						.getBillStan() != null
						&& castOther.getBillStan() != null && this
						.getBillStan().equals(castOther.getBillStan())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBillOrgcode() == null ? 0 : this.getBillOrgcode()
						.hashCode());
		result = 37
				* result
				+ (getBillRcvdate() == null ? 0 : this.getBillRcvdate()
						.hashCode());
		result = 37 * result
				+ (getBillStan() == null ? 0 : this.getBillStan().hashCode());
		return result;
	}

}